<?php namespace module\photo;
class Handler {
	public function run($content = '') {
        $message            = Wx::instance( 'message' );
        $content            = $message->getMessage();
        $OPENID             = $content->FromUserName;
        $user               = Wx::instance( 'User' )->get( $OPENID );
//        Wx::instance( 'message' )->text($content->Content);
//        exit;
        $data['nickname']   = $user['nickname'];
        $data['headimgurl'] = $user['headimgurl'];
        $data['content']    = $content->Content;
        Db::table( 'plugin_photo' )->insert( $data );
	}
}